<?php

/**
 * fb_connect actions.
 *
 * @package    sfgift
 * @subpackage fb_connect
 * @author     Tomislav
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class fb_connectActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
//    $this->forward('default', 'module');
      return $this->renderText('ok');
  }
    public function executeConnect(sfWebRequest $request)
    {
        $this->getUser()->connect('facebook');
    }
    public function executeFacebook(sfWebRequest $request)
    {
        $this->me = $this->getUser()->getMelody('facebook')->getMe();
    }


}
